import { appFetch } from "@/utils/appFetch";

export const getAllWebsitesByTypeIdApi = (id: string) => appFetch(
  '/api/websites/getAllWebsitesByCondition',
  {
    method: 'post',
    body: JSON.stringify({
      type: id
    })
  }
)

export const addAllWebsiteApi = (body = {}) => appFetch(
  '/api/websiteTypes/addWebsite',
  {
    method: 'post',
    body: JSON.stringify(body)
  }
)